package com.towery.dbsrcmanager.mybatis.base.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * Created by User on 2016/12/30.
 */
@Data
@TableName(value="t_database")
public class TDatabaseVO extends Model<TDatabaseVO> implements Serializable {

    @TableId(value = "id")
    private String  id;

    @TableField(value = "name")
    private String  name;

    @TableField(value = "jdbcclass")
    private String  jdbcclass;

    @TableField(value = "jdbcurl")
    private String  jdbcurl;
    @TableField(value = "dbuser")
    private String  dbuser;
    @TableField(value = "dbpassword")
    private String  dbpassword;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
